package top.chmin.project.cloud.sys.column.info;
import org.springframework.stereotype.Component;
import top.chmin.project.cloud.common.Column;
import top.chmin.project.cloud.common.ModelColumn;
import java.util.Arrays;



/**
 * chmin
 * 2024-01-25 14:22:04
 * cloud-code
 */
@Component
public class ColumnInfoColumn implements ModelColumn {
    public static final String id = "id";
    /*###########auto#start###########*/
    public static final String columnCode = "column_code";
    public static final String columnComment = "column_comment";
    public static final String columnDict = "column_dict";
    public static final String columnLabel = "column_label";
    public static final String columnLength = "column_length";
    public static final String columnName = "column_name";
    public static final String columnNullable = "column_nullable";
    public static final String columnPrecision = "column_precision";
    public static final String columnRelate = "column_relate";
    public static final String columnScale = "column_scale";
    public static final String columnSequence = "column_sequence";
    public static final String columnType = "column_type";
    public static final String tableCode = "table_code";
    /*###########auto##end############*/
    /* append $columnFieldAppender$ */
    public static final String createBy = "create_by";
    public static final String updateBy = "update_by";
    public static final String createTime = "create_time";
    public static final String updateTime = "update_time";

    public ColumnInfoColumn() {
        modelColumnMap.put(ColumnInfo.class, Arrays.asList(
                new Column(id),
                /*###########auto#start###########*/
                new Column(columnCode),
                new Column(columnComment),
                new Column(columnDict),
                new Column(columnLabel),
                new Column(columnLength),
                new Column(columnName),
                new Column(columnNullable),
                new Column(columnPrecision),
                new Column(columnRelate),
                new Column(columnScale),
                new Column(columnSequence),
                new Column(columnType),
                new Column(tableCode),
                /*###########auto##end############*/
                /* append $columnColumnAppender$ */
                new Column(createBy),
                new Column(updateBy),
                new Column(createTime),
                new Column(updateTime)
        ));
    }
}
